/**
 * <p>
 *
 * @Author：Roy
 * @Description：预警推送目标
 * @Date：Create by 2023-12-04 16:52:33
 */
import request from '@/utils/request'

const earlyWarningUser = {
  // 分页查询预警推送目标
  queryList(data) {
    return request({
      url: '/energy-carbon/ecp-admin/earlyWarningUser/queryPage',
      method: 'post',
      data
    })
  },
  // 新增预警推送目标
  add(data) {
    return request({
      url: '/energy-carbon/ecp-admin/earlyWarningUser/add',
      method: 'post',
      data
    })
  },
  // 编辑预警推送目标
  update(data) {
    return request({
      url: '/energy-carbon/ecp-admin/earlyWarningUser/update',
      method: 'post',
      data
    })
  },
  // 删除预警推送目标
  deleteById(data) {
    return request({
      url: '/energy-carbon/ecp-admin/earlyWarningUser/deleteById',
      method: 'post',
      data
    })
  },
  // 启用禁用
  enableOrDisable(data) {
    return request({
      url: '/energy-carbon/ecp-admin/earlyWarningUser/enableOrDisable',
      method: 'post',
      data
    })
  },
  // 批量删除预警推送目标
  batchDelete(data) {
    return request({
      url: '/energy-carbon/ecp-admin/earlyWarningUser/batchDelete',
      method: 'post',
      data
    })
  }
}

export default earlyWarningUser
